﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using com.eforceglobal.crux.DTOs;

namespace com.eforceglobal.crux.controllers
{
    /// <summary>
    /// Summary description for CurrentUser
    /// </summary>
    public class SessionData
    {
        public SessionData()
        {

        }

        public UserInformation CurrentUser
        {
            get { return (UserInformation)HttpContext.Current.Session["user"]; }
            set { HttpContext.Current.Session["user"] = value; }
        }

        public string CurrentView
        {
            get { return HttpContext.Current.Session["currentview"].ToString(); }
            set { HttpContext.Current.Session["currentview"] = value; }
        }

        public string CurrentViewSection
        {
            get { return HttpContext.Current.Session["currentviewsection"].ToString(); }
            set { HttpContext.Current.Session["currentviewsection"] = value; }
        }

        public object PageData
        {
            get { return HttpContext.Current.Session["PageData"]; }
            set { HttpContext.Current.Session["PageData"] = value; }
        }
    }
}